/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package gob.inei.enaho.model.domain.tiempo;

import gob.inei.enaho.model.domain.comun.Categoria;

/**
 *
 * @author Rdelacruz
 */
public class Quincena 
extends Categoria
{

    public String[] getCodigosPeriodo() {
        String cod = this.getCodigo();
        if(cod.equals("1"))
            return new String[]{"1","2"};
        else if(cod.equals("2"))
            return new String[]{"3","4","5"};
        return null;
    }
    
    public String getEtiqueta() {
        String cod = this.getCodigo();
        if(cod!=null) {
            if(cod.equals("1"))
                return "1RA QUINCENA";
            if(cod.equals("2"))
                return "2DA QUINCENA";
        }
        return "";
    }
}
